﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Articles.aspx.cs" Inherits="Framework.Articles" %>

<%@ Register Src="~/Controls/PagingControl.ascx" TagName="PagingControl" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div class="container">
            <div class="home-content">
                <div class="blog article">
                    <asp:Repeater ID="rptArticle" runat="server">
                        <ItemTemplate>
                            <div class="blog-content">
                                <div class="blog-large-item blog-event-item" style="box-shadow: none">
                                    <div class="event-header">
                                        <img src="<%# DGSFramework.ConfigPaths.Path_ImageArticle_Folder.Substring(1) + Eval("ImageUrl")%>"
                                            alt="<%# !string.IsNullOrEmpty(Eval("ImageAlt").ToString()) ? Eval("ImageAlt").ToString() : Eval("Title").ToString() %>">
                                    </div>
                                    <div class="event-content">
                                        <h3><%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"),true) %></h3>
                                        <p class="padding-15px no-paddingleft">
                                            <%# DGSFramework.Globals.TruncateString(Eval("Abstract").ToString(), 150) %>
<a class="link" href="<%# ResolveUrl("~/" + DGSFramework.Globals.GetUrl(Eval("UrlRewrite").ToString(), DGSFramework.Globals.GetUrlAspx(Eval("UrlRewrite").ToString(), false) + Eval("ArticleID").ToString())) %>"
                                                title="<%# DGSFramework.Globals.GetLanguage(Eval("Title"), Eval("Title_en"), true)%>">Đọc thêm</a>
                                        </p>
                                                                           </div>
                                </div>

                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <uc1:PagingControl runat="server" ID="PagingControl1" />
                </div>
            </div>
        </div>
</asp:Content>
